import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
const RegionNameKey = "Region-Name"
const AvatarKey = "avatar";

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getRegionName() {
  return Cookies.get(RegionNameKey)
}

export function setRegionName(regionName) {
  return Cookies.set(RegionNameKey, regionName)
}

export function removeRegionName() {
  return Cookies.remove(RegionNameKey)
}

export function getAvatar() {
  return Cookies.get(AvatarKey)
}

export function setAvatar(avatar) {
  return Cookies.set(AvatarKey, avatar)
}

